//导入request.js工具
import request from "@/utils/request";
//调用注册接口的函数

export const addTraining = (form) => {
  return request.post("/training", form);
};
export const searchTraining = (page, size) => {
  return request.post(
    "/training/search",
    {},
    {
      params: {
        page: page,
        size: size,
      },
    }
  );
};
export const deleteTraining = (id) => {
  return request.delete("/training/deleteTraining", {
    params: {
      id: id,
    },
  });
};
